/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.kaaction.common.persistence.DataEntity;

/**
 * 客户管理Entity
 * @author huanghaiming
 * @version 2017-05-17
 */
public class MerCustomer extends DataEntity<MerCustomer> {
	
	private static final long serialVersionUID = 1L;
	private String mobile;		// 手机
	private String gender;		// 性别
	private Date birth;		// 生日
	private String thirdpartyType;		// 第三方渠道
	private String thirdpartyId;		// 第三方渠道编号
	private String nickname;		// 昵称
	private String realname;		// 真实姓名
	private String address;		// 地址
	private String eventchannelId;		// 来源
	private String photo;		// 头像
	private String logo;		// logo
	private String thirdpartyMore;		// 如微信的unionid
	private String endTime;  //最后登入时间
	
	
	private Integer weddingBudget;//婚礼预算
	
	public MerCustomer() {
		super();
	}

	public MerCustomer(String id){
		super(id);
	}

	@Length(min=0, max=64, message="手机长度必须介于 0 和 64 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=1, message="性别长度必须介于 0 和 1 之间")
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}
	
	@Length(min=0, max=3, message="第三方渠道长度必须介于 0 和 3 之间")
	public String getThirdpartyType() {
		return thirdpartyType;
	}

	public void setThirdpartyType(String thirdpartyType) {
		this.thirdpartyType = thirdpartyType;
	}
	
	@Length(min=0, max=255, message="第三方渠道编号长度必须介于 0 和 255 之间")
	public String getThirdpartyId() {
		return thirdpartyId;
	}

	public void setThirdpartyId(String thirdpartyId) {
		this.thirdpartyId = thirdpartyId;
	}
	
	@Length(min=0, max=255, message="昵称长度必须介于 0 和 255 之间")
	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	@Length(min=0, max=255, message="真实姓名长度必须介于 0 和 255 之间")
	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}
	
	@Length(min=0, max=255, message="地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=64, message="来源长度必须介于 0 和 64 之间")
	public String getEventchannelId() {
		return eventchannelId;
	}

	public void setEventchannelId(String eventchannelId) {
		this.eventchannelId = eventchannelId;
	}
	
	@Length(min=0, max=255, message="头像长度必须介于 0 和 255之间")
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
	@Length(min=0, max=64, message="logo长度必须介于 0 和 64 之间")
	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}
	
	@Length(min=0, max=64, message="如微信的unionid长度必须介于 0 和 64 之间")
	public String getThirdpartyMore() {
		return thirdpartyMore;
	}

	public void setThirdpartyMore(String thirdpartyMore) {
		this.thirdpartyMore = thirdpartyMore;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public Integer getWeddingBudget() {
		return weddingBudget;
	}

	public void setWeddingBudget(Integer weddingBudget) {
		this.weddingBudget = weddingBudget;
	}
	
	
}